<?php
class AllowedController extends Controller
{
	public function actionBuildAlias()
	{
		$title = Yii::app()->request->getParam('title');
		$delimiter = Yii::app()->request->getParam('delimiter');
		$alias['result'] = StringCommon::str_normalizer($title, $delimiter);
		echo CJSON::encode($alias);
		Yii::app()->end();
	}
	public function actionIndex()
	{
		// renders the view file 'protected/views/site/index.php'
		// using the default layout 'protected/views/layouts/main.php'
		$this->render('index');
	}
}